/* jshint indent: 1 */

module.exports = function(sequelize, DataTypes) {
	return sequelize.define('Users', {
		id: {
			type: DataTypes.INTEGER(11),
			allowNull: false,
			primaryKey: true,
			autoIncrement: true
		},
		name: {
			type: DataTypes.STRING(16),
			allowNull: false
		},
		phone: {
			type: DataTypes.BIGINT,
			allowNull: false
		},
		licenseYear: {
			type: DataTypes.INTEGER(3),
			allowNull: false
		},
		createdAt: {
			allowNull: false,
			type: DataTypes.DATE
		},
		updatedAt: {
			allowNull: false,
			type: DataTypes.DATE
		},
		deletedAt: {
			type: DataTypes.DATE
		}
	}, {
		tableName: 'Users'
	});
};